    <div class="mainCon">
        <div class="breadCurmbs"><a href="#">管理员列表</a></div>
        <!--  搜索表单  -->
        <form name='form3' action='<?php echo base_url('admin/member/search');?>' method='POST'>
            <input type='hidden' name='dopost' value='' />
            <table width='98%'  border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' align="center" style="margin-top:8px">
                <tr bgcolor='#EEF4EA'>
                    <td background='<?php echo base_url();?>images/wbg.gif' align='center'>
                        <table border='0' cellpadding='0' cellspacing='0'>
                            <tr>
                                <td width='90' align='center'>搜索条件：</td>
                                <td width='160'>
                                    <select name='where' style='width:150'>
                                        <option value='name'>选择搜索条件...</option>
                                        <option value='name'>用户名</option>
                                        <option value='authority'>权限</option>
                                        <option value='position'>管理位置</option>
                                        <option value='last_login_ip'>上次登入ip</option>
                                    </select>
                                </td>
                                <td width='70'>
                                    关键字：
                                </td>
                                <td width='160'>
                                    <input type='text' name='keywords' value='' style='width:150px' />
                                </td>
                                <td width='110'>
                                    <select name='orderby' style='width:80px' class="span2">
                                        <option value='ASC'>排序...</option>
                                        <option value='ASC'>升序</option>
                                        <option value='DESC'>降序</option>
                                    </select>
                                </td>
                                <td>
                                    <input type="submit" class="btn" value="检索" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </form>
        <div class="box">
            <table cellpadding="0" cellspacing="0" border="0" class="table-2">
                <tr>
                    <th class="num2">用户名</th>
                    <th class="num3">手机号</th>
                    <th class="num4">注册时间</th>
                    <th class="num4">邮箱</th>
                    <th class="num3">上次登入时间</th>
                    <th class="num4">个人链接</th>
                    <th class="num4">上次登入ip</th>
                    <th class="num4">出生日期</th>
                    <th class="num4">地址</th>
                    <th class="num4">性别</th>
                    <th class="num7">操作</th>
                </tr>
                <?php
                if($result):
                    foreach($result as $v):
                ?>
                <tr>
                    <td class="num2"><?php echo $v['name'];?></td>
                    <td class="num3"><?php echo $v['phone'];?></td>
                    <td class="num4"><?php echo $v['reg_time'];?></td>
                    <td class="num4"><?php echo $v['email'];?></td>
                    <td class="num1"><?php echo $v['last_login_time'];?></td>
                    <td class="num4"><?php echo $v['url'];?></td>
                    <td class="num4"><?php echo $v['last_login_ip'];?></td>
                    <td class="num4"><?php echo $v['birth_date'];?></td>
                    <td class="num4"><?php echo $v['address'];?></td>
                    <td class="num4">
                        <?php
                            if($v['gender'] == 0) echo '男';
                            if($v['gender'] == 1) echo '女';
                        ?>
                    </td>
                    <?php if($this->session->userdata('authority') == 1):?>
                    <td class="num7"><a href="<?php echo site_url('admin/member/member_edit');?>/<?php echo $v['id'];?>">编辑</a> | <a href="<?php echo site_url('admin/member/member_delete');?>/<?php echo $v['id'];?>" onclick="return confirm('确认删除？');">删除</a></td>
                    <?php endif;?>
                </tr>
                <?php 
                        endforeach;
                    endif;
                ?>
            </table>
            <?php if($this->session->userdata('authority') == 1):?>
            <div class="bottomPaging"> 
                <a href="<?php echo site_url('admin/member/member_add')?>" class="fl iBtn addList">新增会员</a>
            </div>
            <?php endif;?>
        </div>
    </div>
</div>

